package letsjava.pattern.observer;

import java.util.Observable;
import java.util.Observer;

public class NameObserver implements Observer {
	public void update(Observable obj, Object arg) {
		if (arg instanceof String) {
			System.out.println("NameObserver :name changet to " + arg);
		}
	}
}
